<?php


require './source/class/class_core.php';
require './source/function/function_forum.php';

$discuz = & discuz_core::instance();
$discuz->init();
loadforum();
loadcache('plugin');
if(!$_G[uid] && $_G[renren] && $_G['cache']['plugin']['renren']['name']==1){
require_once libfile('class/renren_connect');
require_once libfile('function/renren');
require_once libfile('class/renren_api');
$renren = & renren_connect::instance();
$api= & renren_api::instance();
$user_info = $api->get_user_info();
$username = $user_info->name;


if(submitcheck('rradmincreatesubmit')){

$dz_username=$_POST[username];
$renren->init($discuz_uid,$dz_username);
showmessage("操作成功",'index.php',1);
}
include template('renren:rr_login');
}
else{
 header("Location:index.php");
	}


?>
